import { fetchAccessApi } from './request-gasc'
import {menuList} from '../../../mock/post/getMenuList'
/**
 * 获取菜单列表
 */

function fetchMenuList() {

  return fetchAccessApi({
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'post',
    url: `/resources/getMenuList?appCode=citycode_m_2020`
  })

  // return new Promise(resolve => {
  //   // TODO for test
  //   resolve(menuList.data)
  // })

}

export { fetchMenuList }
